<?php
class Ecore_Rewrite_Education {	
	public function slug($intId, $strName) {
		$strName 	= trim($strName);
		$strName 	= Ecore_Function::UTF8Deaccent($strName);       
		return Ecore_Function::convertNoVn($strName) . '-EDU' . Ecore_Function::dec2Hex($intId) . '.html';
	}
	public function link($intId, $strName) {
		$strUrl = Ecore_Rewrite_Education::slug($intId, $strName);
		return HOST_FRONTEND . $strUrl;
	}
}
